package com.greate.community.entity.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class AddPostDTO {

    @NotBlank(message = "标题不能为空")
    @Size(max = 20, message = "标题不能超过20字")
    private String title;

    @NotBlank(message = "内容不能为空")
    @Size(max = 1000, message = "内容过长")
    private String content;

    private List<String> picUrls;
}
